package com.hech.hmall.dao;

import com.hech.hmall.entity.UserEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author hanjiafeng
 * @date 2021/5/6 20:31
 * @desc todo
 */
@Repository
public interface IUserDao {
    int deleteByPrimaryKey(Integer id);

    int insert(UserEntity record);

    int insertSelective(UserEntity record);

    UserEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserEntity record);

    int updateByPrimaryKey(UserEntity record);

    /**
     * 查询
     *
     * @param record record
     * @return list
     */
    List<UserEntity> selectSelective(@Param("record") UserEntity record);
}
